package com.uflower.order.feign;

import com.uflower.common.utils.R;
import com.uflower.order.vo.MemberAddressVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.lang.reflect.Member;
import java.util.List;

@FeignClient(name = "uflower-user",url = "http://localhost:10003")
public interface UserFeignService {

    @GetMapping ("user/receiveaddress/{userId}/addresses")
    public List<MemberAddressVo> getAddress(@PathVariable("userId") Long userId);

}
